//
//  KEClassifyModel.swift
//  KoalaEn
//
//  Created by Wade on 2024/11/3.
//

import Foundation

/*
 {
     "_id": {
         "_value": "66eec2c655b33745498debf5",
         "a-koala-en-words-categories": [{
             "_id": "66eec3ea816a3ffb2dc23175",
             "category_id": "66eec2c655b33745498debf5",
             "word_category_en": "fruit",
             "word_category_zh": "水果",
             "word_category_sort": 1,
             "word_category_icon_url": "https://mp-d6f030db-0e27-458b-906b-ae7d21ab9004.cdn.bspapp.com/cloudstorage/1515dd99-294a-4e95-bf3f-859a14527d27.png"
         }]
     },
     "category_en": "food",
     "category_zh": "食物",
     "category_sort": 1,
     "category_icon_url": "https://mp-d6f030db-0e27-458b-906b-ae7d21ab9004.cdn.bspapp.com/cloudstorage/36d48782-50c6-4906-a396-b3ab428921cb.png"
 }
 */
struct KEClassifyListResult:Decodable{
       var result:Array<KEClassifyList>?
       var error:String?
}


struct KEClassifyList:Decodable{
    var category_en:String?
    var category_zh:String?
    var category_sort:Int?
    var category_icon_url:String?
    var _id:KEClassifyCategoriesList?
}

struct KEClassifyCategoriesList:Decodable{
    var _value:String?
    var aKoalaWordsCategories:Array<KEClassifyCategoriesDetail>?
}

struct KEClassifyCategoriesDetail:Decodable{
    var _id:String?
    var category_id:String?
    var word_category_en:String?
    var word_category_zh:String?
    var word_category_sort:Int?
    var word_category_icon_url:String?
}

